]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: defer position-changed till we have a rect
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 13 Jul 2018 22:14:07 +0000 (00:14 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 3 Aug 2018 11:12:20 +0000 (13:12 +0200)
Emitting it that soon results in JS warnings, as we don't have
everything in place yet. The position-changed signal will be
emitted from other locations as soon as we have it.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/464

Closes: #464
js/ui/keyboard.js

index 1666a507b86e99d52dac0c9d30ded41a871a075e..4a249404450f8cd7c7f894ef3427bc5201b94f3b 100644 (file)
@@ -526,9 +526,7 @@ var FocusTracker = new Lang.Class({
         this._currentWindow = window;
         if (window) {
             this._currentWindowPositionId = this._currentWindow.connect('position-changed', () => {
-                if (global.display.get_grab_op() == Meta.GrabOp.NONE)
-                    this.emit('position-changed');
-                else
+                if (global.display.get_grab_op() != Meta.GrabOp.NONE)
                     this.emit('reset');
             });
         }